﻿using Fetion.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Fetion.Core
{
    public class RspCmdDic
    {
        private static Dictionary<int, Type> cmdDic = null;
        static RspCmdDic()
        {
            if (cmdDic == null)
            { 
                cmdDic = new Dictionary<int, Type>();
                InitTypeList();
            }
        }
        private static void InitTypeList()
        {
            cmdDic.Add(10102, typeof(Reg2V5RspArgs));
            cmdDic.Add(90115, typeof(NotifyCollectionArgs01));
        }
        public static Type GetType(int cmd)
        {
            if (cmdDic[cmd] != null)
            {
                return cmdDic[cmd];
            }
            else
            {
                return null;
            }
        }

    }
}
